#include "Physics.h"

using namespace me;
using namespace std;

Acceleration::Acceleration(float nx, float ny):
    Vector2f::Vector2f(nx, ny)
{

}

Acceleration::~Acceleration()
{

}

Vector2f Acceleration::getResultVelocity()
{
    Vector2f ret;

    double progress = m_clock.getElapsedTime().asMilliseconds()/1000;
    ret.x = x*progress;
    ret.y = y*progress;
    m_clock.restart();

    return ret;
}
